<template>
  <div class="tdesign-demo-block-column">
    <t-textarea
      v-model="value"
      placeholder="请输入"
      @keypress="onKeypress"
      @keydown="onKeydown"
      @keyup="onKeyup"
      @focus="onFocus"
      @blur="onBlur"
    />
  </div>
</template>
<script>
export default {
  data() {
    return {
      value: '',
    };
  },
  methods: {
    onKeypress(value, e) {
      console.log('onKeypress: ', value, e);
    },
    onKeydown(value, e) {
      console.log('onKeydown: ', value, e);
    },
    onKeyup(value, e) {
      console.log('onKeyup: ', value, e);
    },

    onFocus(value, e) {
      console.log('onFocus: ', value, e);
    },
    onBlur(value, e) {
      console.log('onBlur: ', value, e);
    },
  },
};
</script>
